Hello,
I tried to set a VLAN to a port on Juniper EX using NAV PortAdmin.
It didn't work.
I think going for a unique standard (SNMP) to interact with the equipements
was a sound design decision. The problem is some vendors have different
ways of doing things.
I tried SNMP setting the VLAN on a port on Juniper EX (EX2200C as a
test platform, running JunOS 12.3R6.6)
It looks like there is no way to do it with SNMP, neither using the
Q-BRIDGE-MIB, nor using the Juniper enterprise MIB :
export MIBS=JUNIPER-SMI:JUNIPER-EX-SMI:JUNIPER-VLAN-MIB:Q-BRIDGE-MIB
export MIBDIRS=+/var/lib/snmp/mibs/juniper:+/var/lib/snmp/mibs/ietf
snmpset -v2c -c private ex2200.example.com jnxExVlanPortStatus.1.524 i 3
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: JUNIPER-VLAN-MIB::jnxExVlanPortStatus.1.524
snmpset -v2c -c private ex2200.example.com dot1qPvid.524 Unsigned32 4
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: Q-BRIDGE-MIB::dot1qPvid.524
snmpset -v2c -c private ex2200.example.com dot1qVlanStaticEgressPorts.3 s "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0C 10 "
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.3
Looking into Juniper documentation, where some writable SNMP mib variables
are mentionned, it seems that SNMP is not intended to be the main tool to
modify things.
Juniper provides ssh and Netconf ; there is a library in python
(Junos PyEZ). You can even choose to interact with
the switch using XML, JSON or text.
My feeling is most of those automations won't be available through SNMP.
My first idea was to add a login/password/ssh-key in the database,
then call a specific function based on this lib.
In a previous email on nav-users, Morten said :
>Regardless of whether NAV had more support for Juniper (which we plan to
>add, since we are increasingly becoming a Juniper shop ourselves) [...]
What is the strategy to bring more support for Juniper from a code perspective ?
I discovered there is a Netconf branch in the git repo.
I couldn't find any information about it.
How stable/mature is the Netconf branch ?
Do you have any plan to integrate and release it ?
Thanks for your answers !
--
Jean