Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Naseredin Aramnejad committed Mar 16, 2022
1 parent b72b398 commit 09fbb4c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,28 @@ import (
"fmt"
"log"
//import the pssh package.
//import the 1830pss cli module.
"github.com/naseriax/pssh"
)
func main() {
//create the Node.
//Create the Node.
node := pssh.Nokia_1830PSS{
Ip: "192.168.10.35",
UserName: "admin",
Password: "admin",
Port: "22",
Name: "",
}
//initiate the ssh connection.
err := pssh.Init(&node)
//Connect to the node's cli via ssh.
err := node.Connect()
if err != nil {
log.Fatalln(err)
}
defer node.Disconnect()
//execute the cli commands.
res, err := node.Run("show version")
res, err := node.Run("show slot *")
if err != nil {
log.Fatalln(err)
}
Expand Down

0 comments on commit 09fbb4c

Please sign in to comment.