[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [PERL] Ssh via perl til cisco device ?



Hep,

Jeg ved ikke præcist hvormeget man kan med SNMP, men det er vist det den protokol er rettet imod, der er masser af SNMP moduler på CPAN.

http://search.cpan.org/search?query=SNMP&mode=module

Ellers kunne du kigge på Expect, der er også et CPAN modul til Expect.

http://search.cpan.org/search?query=Expect&mode=module

jonasbn

On 7/1-2004, at 19.15, Brian Ipsen wrote:

Hej!

Er det mon muligt at bruge perl til at koble op imod noget udstyr, og hente
en konfiguration ud og gemme lokalt i en fil ?? Hvis jeg gør det i en shell
ser det ca. sådan her ud:


# ssh -lusername A.B.C.D
sslug@sslug's password:
Type help or '?' for a list of available commands.
cisco>
cisco> en
Password: ********
cisco# no pager
cisco# wr ter
...
config data
...
,,,
:end
[OK]
cisco# quit

Skulle det mon være muligt ?? - Jeg kan med det samme sige, at det ikke er
muligt at gemme config'en via tftp (hvis nogen skulle få den tanke)....


/Brian







 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:43 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *