security shell

44 views
Skip to first unread message

Cbastien Dore

unread,
Aug 28, 2019, 10:14:33 AM8/28/19
to NetBox
Hello,

I would like to know if there is a functionnality who can open the security shell. 
For example if I click on an IP adress or add a button, it's opening the SSH. 

Thanks, 
SR

Brian Candler

unread,
Aug 28, 2019, 12:05:52 PM8/28/19
to NetBox
Yes: as long as you can launch ssh from your browser.

The feature you need is called "Custom Links".  Unfortunately it is not documented in the Netbox manual.  There is brief documentation in the 2.6 release notes and related ticket.

You provide two templates: one to generate the button text, and one to generate the URL.  If the button text expands to empty string, then the button is suppressed.

Beware: if the URL expansion fails, Netbox will raise an exception.  Therefore, add suitable tests in the button text, to check that all the fields you need are present.

Reply all
Reply to author
Forward
0 new messages