![](https://secure.gravatar.com/avatar/f594badf6a92f67d0d6c19ca8e2daf04.jpg?s=120&d=mm&r=g)
I've got a juniper device i'm trying to add using snmpv3 but running into some issues when running the ./addhost.php script.
I can poll the device from observium using snmpget/walk and can confirm that there's no firewalls or bad config on the router.
(replaced hostname, community and password and aes below)
# snmpget -v3 -u gops -A COMMUNITY -l authPriv -X PASS -x AES -a SHA my.juniper.router sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Juniper Networks, Inc. jsr4350 internet router, kernel JUNOS 10.1R2.8 #0: 2010-05-11 03:31:06 UTC builder@queth.juniper.net:/volume/build/junos/10.1/release/10.1R2.8/obj-i386/bsd/sys/compile/JSR Build date: 2010-05-11 03:18:36 UTC Copyright (c) 1996-
Then, when running ./addhost.php:
# ./addhost.php my.juniper.router COMMUNITY v3 gops PASS PASS sha aes 161 udp Trying v3 parameters observium/noAuthNoPriv ... No reply on credentials observium/noAuthNoPriv using v3 Could not reach my.juniper.router with given SNMP community using v3
Observium v0.13.5.4015 Add Host Tool
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 05/20/2013 09:19 PM, Jacob Gardiner wrote:
I've got a juniper device i'm trying to add using snmpv3 but running into some issues when running the ./addhost.php script. ... Then, when running ./addhost.php:
# ./addhost.php my.juniper.router COMMUNITY v3 gops PASS PASS sha aes 161 udp Trying v3 parameters observium/noAuthNoPriv ... No reply on credentials observium/noAuthNoPriv using v3 Could not reach my.juniper.router with given SNMP community using v3
Doing it with -d (debug) turned on might give more info.
![](https://secure.gravatar.com/avatar/f594badf6a92f67d0d6c19ca8e2daf04.jpg?s=120&d=mm&r=g)
looks like the option of 'ap' is actually needed to accept the v3 input in addhost.php, otherwise it just pulls the arguments from defaults.inc.php, completely ignoring the arguments you give it.
working example: ./addhost.php my.juniper.router ap v3 USERNAME PASS ENCRYPTPASS sha aes 161 udp
I wasn't using the 'ap' after the hostname. Might be worth fleshing this out in the wiki a bit more, i couldn't find anything.
On 20 May 2013 12:26, Paul Gear observium@gear.dyndns.org wrote:
On 05/20/2013 09:19 PM, Jacob Gardiner wrote:
I've got a juniper device i'm trying to add using snmpv3 but running into some issues when running the ./addhost.php script. ... Then, when running ./addhost.php:
# ./addhost.php my.juniper.router COMMUNITY v3 gops PASS PASS sha aes 161 udp Trying v3 parameters observium/noAuthNoPriv ... No reply on credentials observium/noAuthNoPriv using v3 Could not reach my.juniper.router with given SNMP community using v3
Doing it with -d (debug) turned on might give more info.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/f594badf6a92f67d0d6c19ca8e2daf04.jpg?s=120&d=mm&r=g)
After digging through php code, it looks like i have to manually edit default.inc.php, rather than passing the addhost.php script arguments - Is this normal?
On 20 May 2013 12:19, Jacob Gardiner jacob@jacobgardiner.com wrote:
I've got a juniper device i'm trying to add using snmpv3 but running into some issues when running the ./addhost.php script.
I can poll the device from observium using snmpget/walk and can confirm that there's no firewalls or bad config on the router.
(replaced hostname, community and password and aes below)
# snmpget -v3 -u gops -A COMMUNITY -l authPriv -X PASS -x AES -a SHA my.juniper.router sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Juniper Networks, Inc. jsr4350 internet router, kernel JUNOS 10.1R2.8 #0: 2010-05-11 03:31:06 UTC builder@queth.juniper.net:/volume/build/junos/10.1/release/10.1R2.8/obj-i386/bsd/sys/compile/JSR Build date: 2010-05-11 03:18:36 UTC Copyright (c) 1996-
Then, when running ./addhost.php:
# ./addhost.php my.juniper.router COMMUNITY v3 gops PASS PASS sha aes 161 udp Trying v3 parameters observium/noAuthNoPriv ... No reply on credentials observium/noAuthNoPriv using v3 Could not reach my.juniper.router with given SNMP community using v3
Observium v0.13.5.4015 Add Host Tool
-- Jacob Gardiner @jacobgardiner http://twitter.com/jacobgardiner
participants (2)
-
Jacob Gardiner
-
Paul Gear