You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_all_nodes.go 509 B

3 years ago
1234567891011121314151617181920
  1. package main
  2. import "slurm/nodeinfo"
  3. import "fmt"
  4. func main(){
  5. node_list := node_info.Get_all_nodes()
  6. fmt.Printf("Found %d nodes \n", node_list.Record_count)
  7. /* a little bit nicer*/
  8. fmt.Printf("name\t State\t\t\t Reason\t\t Tres\n")
  9. fmt.Printf("________________________________________\n")
  10. for i := range node_list.Node_list {
  11. node := node_list.Node_list[i]
  12. fmt.Printf("%s\t %s\t %s\t %s\n", node.Node_hostname, node_info.State_to_string(node.Node_state), node.Reason, node.Tres_fmt_str)
  13. }
  14. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.