Take the 2-minute tour ×
Network Engineering Stack Exchange is a question and answer site for network engineers. It's 100% free, no registration required.

What protocol(s) can be used to programatically "push" configuration settings to Cisco/HP switches, over a network? Of course, I could write a program which would imitate what a human does when logging in by telnet/SSH, and then issue command-line commands. But I'm hoping there is a nicer way to do this.

(I'm sure I could find the answer through Google... if I just knew the right search keywords to try!)

share|improve this question
    
what programming language are you using –  user5025 Apr 30 at 12:44
    
The programming language doesn't matter; if there is a protocol which can do this, then I will either find an existing client library or write my own, using TCP or UDP sockets (whichever is required). Or if there is a good command-line utility, then I can shell out to it. Any decent programming language can do all of those things. –  Alex D Apr 30 at 13:21
    
The language matters if canned libraries already exist. Of course we can't help with that if you insist on secrecy –  user5025 Apr 30 at 13:24
    
For me, right now, the following languages are of interest: Ruby, Lua, C. For future readers of this thread, please go ahead and post information on any other language which you happen to know about. –  Alex D Apr 30 at 13:39
    
I think an open-ended list of resources is off-topic –  user5025 Apr 30 at 13:55
add comment

3 Answers 3

If your devices are not to old netconf is the generic way to do this.

share|improve this answer
add comment

Ciscocmd is another option like RANCID which has already been mentioned;

http://sourceforge.net/projects/cosi-nms/files/ciscocmd/

Alternatively you could use SNMP. You can send an SNMP write to the device with the location of a config server using an TFTP URL or HTTP URL and setting the "Pull config" option via SNMP;

http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15217-copy-configs-snmp.html#copying_startup

https://supportforums.cisco.com/discussion/11025771/push-configuration-snmp

share|improve this answer
add comment

try to use rancid. techically its use ssh\telnet, to dump configs to the database, where you can see diffs of your configs, and one of the rancid modules is can be used to send commands to multiple devices:

cisco: ./clogin -c command

hp: ./hlogin -c command

share|improve this answer
1  
Rancid is not a protocol –  Mike Pennington Apr 30 at 12:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.